﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace Web612.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class RoteController : ControllerBase, IRoteBll
    {
         public RoteController(IRoteBll bll)
        {
            Bll = bll;
        }

        public IRoteBll Bll { get; }

        [HttpGet]
        public List<Rote> rotes()
        {
            return Bll.rotes();
        }
    }
}
